﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;
using ExtAspNet;
using GPCSC.Model;
using NickLee.Common;
using System.Data;


namespace GPCSC.Web.sjs
{
    public partial class GGHLIsta : PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                f_bound();
            }
        }
        protected void f_bound()
        {
            CL_USER_S user = reUser();
            string type = Usual.f_querystringToString("type");
            types.Value = type;
            DataSet ds = new GGH_T().F_bound(user.CL_USER_SOID.ToString(), type);
            if (ds.Tables.Count > 0)
            {
                Grid1.DataSource = ds.Tables[0];
                Grid1.DataBind();
            }
        }
        public CL_USER_S reUser()
        {

            byte[] userInfo = (byte[])base.o_baseTable[c_obj.s_userInfo];
            Hashtable userInfoTable = CompressData.UnCompressHashtable(userInfo);
            CL_USER_S users = (GPCSC.Model.CL_USER_S)userInfoTable["SYS_USER"];
            return users;
        }
    }
}